<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            height: 400px;
            width: 400px;
            /* border: 1px solid #000; */
            position: relative;
        }
        .inner{
            height: 400px;
            width: 50px;
             position: absolute;
             transform-origin: center center;
             transition: all 2s;
             left: 200px;
        }
        .box:hover .inner:nth-child(1){
            background-color: red;
        }
        .box:hover .inner:nth-child(2){
            background-color: pink;
            transform: rotateZ(calc(18deg));
        }
        .box:hover .inner:nth-child(3){
            background-color: greenyellow;
            transform: rotateZ(calc(18deg*2));
        }
        .box:hover .inner:nth-child(4){
            background-color: yellow;
            transform: rotateZ(calc(18deg*3));
        }
        .box:hover .inner:nth-child(5){
            background-color: hotpink;
            transform: rotateZ(calc(18deg*4));
        }
        .box:hover .inner:nth-child(6){
            background-color: rgb(43, 133, 223);
            transform: rotateZ(calc(18deg*5));
        }
        .box:hover .inner:nth-child(7){
            background-color: rgb(234, 96, 37);
            transform: rotateZ(calc(18deg*6));
        }
        .box:hover .inner:nth-child(8){
            background-color: rgb(174, 27, 138);
            transform: rotateZ(calc(18deg*7));
        }
        .box:hover .inner:nth-child(9){
            background-color: rgb(156, 194, 19);
            transform: rotateZ(calc(18deg*8));
        }
        .box:hover .inner:nth-child(10){
            background-color: rgb(147, 42, 42);
            transform: rotateZ(calc(18deg*9));
        }
        .box:hover .inner:nth-child(11){
            background-color: rgb(159, 19, 246);
            transform: rotateZ(calc(18deg*10));
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
    </div>
</body>
</html>